def RunYear(y):
    if y % 4 == 0 and y % 100 != 0:
        return 1
    elif y % 400 == 0:
        return 1
    else:
        return 0
try:
    year = int(input('输入年份：'))
    if year >= 0:
        r1 = RunYear(year)
        if r1:
            print('%d是闰年'%(year))
        else:
            print('%d不是闰年'%(year))
except:
    print('输入值有误！')
